PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Particles / Points / martin - polar lights.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.000 |
| 8 | fDecay=0.964 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.000 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=0 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=1 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=1 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=0 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.527 |
| 27 | fWaveSmoothing=0.000 |
| 28 | fWaveParam=0.600 |
| 29 | fModWaveAlphaStart=0.000 |
| 30 | fModWaveAlphaEnd=1.320 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=1.00990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=1.000 |
| 45 | wave_g=0.490 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.075 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=0.300 |
| 54 | ib_size=0.010 |
| 55 | ib_r=0.600 |
| 56 | ib_g=0.400 |
| 57 | ib_b=0.400 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=200 |
| 77 | wavecode_0_sep=90 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=0.69073 |
| 83 | wavecode_0_smoothing=0.10000 |
| 84 | wavecode_0_r=0.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=0.400 |
| 88 | wave_0_per_frame1=r = 0.5+0.4*sin(time/7); |
| 89 | wave_0_per_frame2=g = 0.5+0.4*sin(time/3); |
| 90 | wave_0_per_frame3=b = 0.5+0.4*sin(time/5); |
| 91 | wave_0_per_frame4= |
| 92 | wave_0_per_frame5=t1 = 0.5 + (frame%2 - 0.5)*2*0.35/q32; |
| 93 | wave_0_per_point1=x = sample; |
| 94 | wave_0_per_point2=y = t1+value1; |
| 95 | wavecode_1_enabled=0 |
| 96 | wavecode_1_samples=256 |
| 97 | wavecode_1_sep=0 |
| 98 | wavecode_1_bSpectrum=0 |
| 99 | wavecode_1_bUseDots=1 |
| 100 | wavecode_1_bDrawThick=0 |
| 101 | wavecode_1_bAdditive=0 |
| 102 | wavecode_1_scaling=0.89152 |
| 103 | wavecode_1_smoothing=0.82000 |
| 104 | wavecode_1_r=1.000 |
| 105 | wavecode_1_g=1.000 |
| 106 | wavecode_1_b=1.000 |
| 107 | wavecode_1_a=0.900 |
| 108 | wavecode_2_enabled=0 |
| 109 | wavecode_2_samples=32 |
| 110 | wavecode_2_sep=0 |
| 111 | wavecode_2_bSpectrum=0 |
| 112 | wavecode_2_bUseDots=0 |
| 113 | wavecode_2_bDrawThick=1 |
| 114 | wavecode_2_bAdditive=0 |
| 115 | wavecode_2_scaling=0.89152 |
| 116 | wavecode_2_smoothing=0.82000 |
| 117 | wavecode_2_r=0.000 |
| 118 | wavecode_2_g=0.200 |
| 119 | wavecode_2_b=0.600 |
| 120 | wavecode_2_a=1.000 |
| 121 | wavecode_3_enabled=0 |
| 122 | wavecode_3_samples=300 |
| 123 | wavecode_3_sep=0 |
| 124 | wavecode_3_bSpectrum=1 |
| 125 | wavecode_3_bUseDots=0 |
| 126 | wavecode_3_bDrawThick=0 |
| 127 | wavecode_3_bAdditive=0 |
| 128 | wavecode_3_scaling=1.00000 |
| 129 | wavecode_3_smoothing=0.50000 |
| 130 | wavecode_3_r=1.000 |
| 131 | wavecode_3_g=1.000 |
| 132 | wavecode_3_b=1.000 |
| 133 | wavecode_3_a=1.000 |
| 134 | shapecode_0_enabled=0 |
| 135 | shapecode_0_sides=8 |
| 136 | shapecode_0_additive=1 |
| 137 | shapecode_0_thickOutline=0 |
| 138 | shapecode_0_textured=0 |
| 139 | shapecode_0_num_inst=256 |
| 140 | shapecode_0_x=0.500 |
| 141 | shapecode_0_y=0.500 |
| 142 | shapecode_0_rad=0.03632 |
| 143 | shapecode_0_ang=0.00000 |
| 144 | shapecode_0_tex_ang=1.00531 |
| 145 | shapecode_0_tex_zoom=1.53117 |
| 146 | shapecode_0_r=1.000 |
| 147 | shapecode_0_g=1.000 |
| 148 | shapecode_0_b=1.000 |
| 149 | shapecode_0_a=0.000 |
| 150 | shapecode_0_r2=0.000 |
| 151 | shapecode_0_g2=0.000 |
| 152 | shapecode_0_b2=0.000 |
| 153 | shapecode_0_a2=0.000 |
| 154 | shapecode_0_border_r=0.000 |
| 155 | shapecode_0_border_g=0.000 |
| 156 | shapecode_0_border_b=0.000 |
| 157 | shapecode_0_border_a=0.000 |
| 158 | shapecode_1_enabled=1 |
| 159 | shapecode_1_sides=4 |
| 160 | shapecode_1_additive=1 |
| 161 | shapecode_1_thickOutline=1 |
| 162 | shapecode_1_textured=0 |
| 163 | shapecode_1_num_inst=20 |
| 164 | shapecode_1_x=0.260 |
| 165 | shapecode_1_y=0.200 |
| 166 | shapecode_1_rad=0.43430 |
| 167 | shapecode_1_ang=0.00000 |
| 168 | shapecode_1_tex_ang=0.00000 |
| 169 | shapecode_1_tex_zoom=0.93550 |
| 170 | shapecode_1_r=1.000 |
| 171 | shapecode_1_g=0.000 |
| 172 | shapecode_1_b=0.000 |
| 173 | shapecode_1_a=1.000 |
| 174 | shapecode_1_r2=0.000 |
| 175 | shapecode_1_g2=0.000 |
| 176 | shapecode_1_b2=0.000 |
| 177 | shapecode_1_a2=0.200 |
| 178 | shapecode_1_border_r=1.000 |
| 179 | shapecode_1_border_g=0.000 |
| 180 | shapecode_1_border_b=0.000 |
| 181 | shapecode_1_border_a=1.000 |
| 182 | shape_1_init1=n = 0; |
| 183 | shape_1_init2=loop (num_inst, |
| 184 | shape_1_init3=megabuf(n*8) = rand(1)-0.5; |
| 185 | shape_1_init4=megabuf(n*8+1) = (rand(1)-0.5)*0.2; |
| 186 | shape_1_init5=megabuf(n*8+2) = rand(1); |
| 187 | shape_1_init6=megabuf(n*8+3) = rand(1); |
| 188 | shape_1_init7=megabuf(n*8+4) = rand(1); |
| 189 | shape_1_init8=n+= 1); |
| 190 | shape_1_per_frame1=trel = time/2; |
| 191 | shape_1_per_frame2=z = instance/num_inst-trel; |
| 192 | shape_1_per_frame3=z = (z - int(z))*13; |
| 193 | shape_1_per_frame4= |
| 194 | shape_1_per_frame5= |
| 195 | shape_1_per_frame6=x = megabuf(instance*8)/z*(1+0.6*sin(time*1.8+instance)); |
| 196 | shape_1_per_frame7=y = megabuf(instance*8+1)/z*(1+0.6*sin(time*3+instance)); |
| 197 | shape_1_per_frame8=r1 = sqrt(0.25*pow(x/2,2)+pow(y,2)); |
| 198 | shape_1_per_frame9=x += 0.5; |
| 199 | shape_1_per_frame10=y += 0.5; |
| 200 | shape_1_per_frame11=fac = min(1,0.008/abs(r1-0.1/treb_att))*mid_att; |
| 201 | shape_1_per_frame12=rad = 0.05/z*fac; |
| 202 | shape_1_per_frame13=rad = min(rad,0.4); |
| 203 | shape_1_per_frame14=border_r = megabuf(instance*8+2); |
| 204 | shape_1_per_frame15=border_g = megabuf(instance*8+3); |
| 205 | shape_1_per_frame16=border_b = megabuf(instance*8+4); |
| 206 | shape_1_per_frame17=r = megabuf(instance*8+2); |
| 207 | shape_1_per_frame18=g = megabuf(instance*8+3); |
| 208 | shape_1_per_frame19=b = megabuf(instance*8+4); |
| 209 | shape_1_per_frame20= |
| 210 | shape_1_per_frame21= |
| 211 | shape_1_per_frame22=a =fac*0.3; a2=0;border_a = a; |
| 212 | shape_1_per_frame23= |
| 213 | shapecode_2_enabled=1 |
| 214 | shapecode_2_sides=4 |
| 215 | shapecode_2_additive=0 |
| 216 | shapecode_2_thickOutline=0 |
| 217 | shapecode_2_textured=0 |
| 218 | shapecode_2_num_inst=3 |
| 219 | shapecode_2_x=0.650 |
| 220 | shapecode_2_y=0.380 |
| 221 | shapecode_2_rad=0.01220 |
| 222 | shapecode_2_ang=0.00000 |
| 223 | shapecode_2_tex_ang=0.00000 |
| 224 | shapecode_2_tex_zoom=8.02539 |
| 225 | shapecode_2_r=1.000 |
| 226 | shapecode_2_g=0.000 |
| 227 | shapecode_2_b=0.000 |
| 228 | shapecode_2_a=0.700 |
| 229 | shapecode_2_r2=0.000 |
| 230 | shapecode_2_g2=0.000 |
| 231 | shapecode_2_b2=0.000 |
| 232 | shapecode_2_a2=0.000 |
| 233 | shapecode_2_border_r=0.500 |
| 234 | shapecode_2_border_g=0.500 |
| 235 | shapecode_2_border_b=0.000 |
| 236 | shapecode_2_border_a=0.000 |
| 237 | shape_2_per_frame1=k1 = instance+time*0.23; |
| 238 | shape_2_per_frame2=x = .5 + .3*sin(instance+k1*4); |
| 239 | shape_2_per_frame3=y = .5 + .3 * sin(instance+k1*3); |
| 240 | shape_2_per_frame4= |
| 241 | shape_2_per_frame5=rad = .1; |
| 242 | shape_2_per_frame6=r=g=b=0; |
| 243 | shape_2_per_frame7=a = 0.5; a2 = 0; |
| 244 | shapecode_3_enabled=0 |
| 245 | shapecode_3_sides=14 |
| 246 | shapecode_3_additive=1 |
| 247 | shapecode_3_thickOutline=1 |
| 248 | shapecode_3_textured=1 |
| 249 | shapecode_3_num_inst=11 |
| 250 | shapecode_3_x=0.600 |
| 251 | shapecode_3_y=0.550 |
| 252 | shapecode_3_rad=0.59124 |
| 253 | shapecode_3_ang=1.25664 |
| 254 | shapecode_3_tex_ang=0.00000 |
| 255 | shapecode_3_tex_zoom=0.34933 |
| 256 | shapecode_3_r=0.000 |
| 257 | shapecode_3_g=0.000 |
| 258 | shapecode_3_b=0.800 |
| 259 | shapecode_3_a=1.000 |
| 260 | shapecode_3_r2=0.000 |
| 261 | shapecode_3_g2=0.000 |
| 262 | shapecode_3_b2=0.000 |
| 263 | shapecode_3_a2=0.000 |
| 264 | shapecode_3_border_r=0.200 |
| 265 | shapecode_3_border_g=0.700 |
| 266 | shapecode_3_border_b=0.500 |
| 267 | shapecode_3_border_a=0.000 |
| 268 | per_frame_init_1=n = -5000; loop (20000, megabuf(n)=0; gmegabuf(n)=0; n +=1; ); |
| 269 | per_frame_init_2= |
| 270 | per_frame_init_3=MINBPM = 80; MAXBPM = 200; num_res = 80; num_sig=3; |
| 271 | per_frame_init_4=blocksize = num_res*12+12; |
| 272 | per_frame_init_5=reg04 = blocksize; |
| 273 | per_frame_init_6= |
| 274 | per_frame_init_7=sig = 0; |
| 275 | per_frame_init_8=loop (num_sig, |
| 276 | per_frame_init_9= index = 0; |
| 277 | per_frame_init_10= loop (num_res, |
| 278 | per_frame_init_11= n = blocksize*sig + 12*index; |
| 279 | per_frame_init_12= BPM = minbpm * pow(maxbpm/minbpm,index/num_res); |
| 280 | per_frame_init_13= gmegabuf(n) = BPM; |
| 281 | per_frame_init_14= index += 1; |
| 282 | per_frame_init_15= ); |
| 283 | per_frame_init_16=sig+=1); |
| 284 | per_frame_init_17= |
| 285 | per_frame_init_18=pi = 3.1416; |
| 286 | per_frame_init_19=OCTAVE = (num_res) * log(2) / log (MAXBPM / MINBPM); |
| 287 | per_frame_init_20= |
| 288 | per_frame_init_21=prog = 0; |
| 289 | per_frame_init_22=bindex = rand(8); |
| 290 | per_frame_init_23=count5 = rand(8); |
| 291 | per_frame_1=dt = min (1/fps,0.1) ; //Stability ! |
| 292 | per_frame_2=dec_f = 0.8; dec_m = 1 - 4*dt; dec_s = 1 - dt; |
| 293 | per_frame_3= |
| 294 | per_frame_4=beat = max (max (bass, mid), treb); |
| 295 | per_frame_5=avg = avg*dec_s + beat*(1-dec_s); |
| 296 | per_frame_6=is_beat = above(beat, .5+avg+peak) * above (time, t0+.25); |
| 297 | per_frame_7=t0 = is_beat*time + (1-is_beat)*t0; |
| 298 | per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_m; |
| 299 | per_frame_9=bindex = (bindex + is_beat) %8; |
| 300 | per_frame_10=bindex2 += is_beat*!bindex; |
| 301 | per_frame_11=q24 = is_beat; |
| 302 | per_frame_12= |
| 303 | per_frame_13= |
| 304 | per_frame_14=//Vol delay chain |
| 305 | per_frame_15=vol = (bass+mid+treb); |
| 306 | per_frame_16=tr2 += vol*dt; |
| 307 | per_frame_17=q6 = tr2; |
| 308 | per_frame_18= |
| 309 | per_frame_19=vol_=vol_*0.8 + 0.2*vol; |
| 310 | per_frame_20=tvol = tvol*0.8 + 0.2*(vol-vol_); |
| 311 | per_frame_21=n = 50100; loop (100, gmegabuf (n) = gmegabuf (n-1); n -= 1; ); gmegabuf (50000) = tvol; |
| 312 | per_frame_22=q1 = vol-vol_; |
| 313 | per_frame_23= |
| 314 | per_frame_24=q5 = 0.025*sin(time*0.17); |
| 315 | per_frame_25=monitor = q6; |
| 316 | per_frame_26= |
| 317 | per_frame_27= |
| 318 | per_frame_28=q8 = sin(tr2*0.078); |
| 319 | per_frame_29=q9 = sin(tr2*0.019); |
| 320 | per_frame_30= |
| 321 | per_frame_31=wx += q8*dt/2; |
| 322 | per_frame_32=wy += (1+q9)*dt/2; |
| 323 | per_frame_33=q18 = wx; |
| 324 | per_frame_34=q19 = wy; |
| 325 | per_frame_35=q32=aspecty; |
| 326 | per_pixel_1=warp = .0; rot = .0; |
| 327 | per_pixel_2= |
| 328 | per_pixel_3=zoom = 0.99+ 0.06*abs(pow(gmegabuf(50000+rad*30),1)); |
| 329 | per_pixel_4=zoom -= -q5*((sin(ang*3+q6*0.2)<0)-0.5); |
| 330 | per_pixel_5= |
| 331 | per_pixel_6=dx = q8*(1-rad*2)*0.003; |
| 332 | per_pixel_7=dy = q9*(1-rad*2)*0.003; |
| 333 | warp_1=`shader_body |
| 334 | warp_2=`{ |
| 335 | warp_3=`float2 dither_uv = uv_orig*texsize.xy*texsize_noise_lq.zw + rand_frame.xy; |
| 336 | warp_4=`float2 udith = tex2D(sampler_noise_lq,uv*4+rand_frame)-0.5; |
| 337 | warp_5=`ret= tex2D( sampler_main, uv + udith*0.002); |
| 338 | warp_6=` |
| 339 | warp_7=`ret += (ret.xyz - GetBlur1(uv))*0.4; |
| 340 | warp_8=`ret *= 0.91; |
| 341 | warp_9=` |
| 342 | warp_10=`ret += (tex2D(sampler_noise_lq, dither_uv).xyz-0.5).r*0.02 * saturate(1-treb_att); |
| 343 | warp_11=` |
| 344 | warp_12=`ret = lerp(ret.xyz, 1*lum(ret.xyz), 0.03)*(0.92-0.2*lum(GetBlur1(uv))); |
| 345 | warp_13=` |
| 346 | warp_14=`//ret = 0; |
| 347 | warp_15=`} |
| 348 | comp_1=`#define sat saturate |
| 349 | comp_2=`float z, z0, w0, radi; |
| 350 | comp_3=`float2 uv1, uv2; |
| 351 | comp_4=`static const int anz = 30; |
| 352 | comp_5=`static const float2 ver = texsize.zw*float2(q8*0.1,1); |
| 353 | comp_6=` |
| 354 | comp_7=`shader_body { |
| 355 | comp_8=`//WASSER |
| 356 | comp_9=`uv1 = uv-float2(0.5,0.6); |
| 357 | comp_10=`float z = .3/(uv1.y); |
| 358 | comp_11=`float2 rs0 = float2 (uv1.x * z, z); |
| 359 | comp_12=`float2 rs = (rs0 + float2 (0,time)); |
| 360 | comp_13=`float3 water = tex2D(sampler_noise_hq,rs)+tex2D(sampler_noise_hq,rs*2+time*0.3)/2-0.75; |
| 361 | comp_14=`float2 uv_wat = uv+water*0.03/z; |
| 362 | comp_15=` |
| 363 | comp_16=`float mask = saturate(2/z)*(rand_preset.x > 0.3); |
| 364 | comp_17=` |
| 365 | comp_18=`uv = lerp (uv,uv_wat,mask); |
| 366 | comp_19=`float3 shine = GetPixel(uv); radi = 1; |
| 367 | comp_20=` |
| 368 | comp_21=`for (int n=1; n <= anz; n++) |
| 369 | comp_22=`{ |
| 370 | comp_23=` shine = shine+0.5*(1-1.0*n/anz)*GetBlur1(frac(uv+radi*ver)); |
| 371 | comp_24=`radi += 8; |
| 372 | comp_25=`} |
| 373 | comp_26=`ret = pow(shine/1.5*(1-mask*0.7),.8); |
| 374 | comp_27=` |
| 375 | comp_28=` |
| 376 | comp_29=`} |
| 377 | comp_30=`written by martin |
| 378 | comp_31=`END |